# vim:set ft=make:

OBJECTS_LIBUART         += uart_omap35x.o
CXXFLAGS_uart-libuart   += $(call LIBUART_UART, omap35x)
PREPROCESS_PARTS	+= $(if $(CONFIG_PF_OMAP3_OMAP35XEVM),pf_omap3 pf_omap3_35x)
PREPROCESS_PARTS	+= $(if $(CONFIG_PF_OMAP3_BEAGLEBOARD),pf_omap3 pf_omap3_35x)
PREPROCESS_PARTS	+= $(if $(CONFIG_PF_OMAP3_AM33XX),pf_omap3)
PREPROCESS_PARTS	+= $(if $(CONFIG_PF_OMAP4_PANDABOARD),pf_omap4 mptimer pic_gic)
PREPROCESS_PARTS        += $(if $(CONFIG_PF_OMAP5_5432EVM),pf_omap5 arm_generic_timer pic_gic)
RAM_PHYS_BASE           := 0x80000000
MPCORE_PHYS_BASE        := 0x48240000
TRAMP_MP_ASM_INCLUDE    := $(BSP_SRC_DIR)/tramp-mp-asm.h

INTERFACES_KERNEL-pf_omap3 += timer_omap_1mstimer
INTERFACES_KERNEL     += $(foreach i,$(PREPROCESS_PARTS),$(INTERFACES_KERNEL-$(i)))
INTERFACES_KERNEL-$(CONFIG_PF_OMAP3_AM33XX)  += timer_omap_gentimer
INTERFACES_KERNEL-$(CONFIG_PF_OMAP5_5432EVM) += generic_timer

config_IMPL           += config-arm-omap
mem_layout_IMPL       += mem_layout-arm-omap
pic_IMPL              += $(if $(CONFIG_PF_OMAP4_PANDABOARD)$(CONFIG_PF_OMAP5_5432EVM),pic-gic pic-arm-gic-omap4,pic-arm-omap3)
timer_IMPL            += $(if $(CONFIG_PF_OMAP4_PANDABOARD),timer-arm-mptimer timer-arm-mptimer-omap4,timer-arm-omap3)
timer_IMPL            += $(if $(CONFIG_PF_OMAP5_5432EVM),timer-arm-generic timer-arm-generic-omap5)
timer_tick_IMPL       += timer_tick-single-vector
reset_IMPL            += reset-arm-omap
clock_IMPL            += $(if $(CONFIG_PF_OMAP5_5432EVM),clock-arm-generic,clock-generic)
platform_control_IMPL += platform_control-arm-omap4
outer_cache_IMPL      += outer_cache-arm-omap
